package com.example.treasure_back.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.treasure_back.mapper.AcknowledgeMapper;
import com.example.treasure_back.model.AcknowledgeModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AcknowledgeService {
    @Autowired
    private AcknowledgeMapper acknowledgeMapper;

    public List<AcknowledgeModel> getAllItems(){
        QueryWrapper<AcknowledgeModel> queryWrapper = new QueryWrapper<>();
        return acknowledgeMapper.selectList(queryWrapper);
    }
}
